package com.example.seakdreamandroid;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class BeforeSleepActivity extends AppCompatActivity {

    private ImageButton startBeforeSleep;
    private Intent intentToBSS;
    private ImageButton backTo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_before_sleep);

        backTo = findViewById(R.id.back_to);
        startBeforeSleep = findViewById(R.id.start_before_sleep);

        backTo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        startBeforeSleep.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                intentToBSS = new Intent();
                intentToBSS.setClass(BeforeSleepActivity.this, BeforeSleepStartActivity.class);
                startActivity(intentToBSS);
            }
        });
    }
}